<?php

namespace App\Models;

use Eloquent as Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Class GoodsAttribute
 * @package App\Models
 * @version September 15, 2017, 8:34 am UTC
 *
 * @property integer goods_id
 * @property string name
 * @property decimal market_price
 * @property decimal sale_price
 * @property integer sales_count
 * @property integer number
 */
class GoodsAttribute extends Model
{
    use SoftDeletes;

    public $table = 'goods_attributes';
    

    protected $dates = ['deleted_at'];


    public $fillable = [
        'goods_id',
        'key',
        'name',
        'market_price',
        'status',
        'sale_price',
        'sales_count',
        'number',
        'weight',
        'day_buy_number',
    ];

    public function goods()
    {
        return $this->belongsTo('App\Models\Goods');
    }

    
}
